﻿using BCCommon.Extensions;
using BCCommon.TMS.Driver;
using System;

namespace BCDto.TMS.Driver.DriverLearnDatum
{
    /// <summary>
    /// 司机学习资料
    /// </summary>
    public class DriverLearnDatumDto
    {
        /// <summary>
        ///司机学习资料Id
        /// </summary>
        public int DatumId { get; set; }

        /// <summary>
        /// 学习资料题目
        /// </summary> 
        public string DatumTopic { get; set; }

        /// <summary>
        /// 学习资料答案Id
        /// </summary>
        public int DatumAnswerId { get; set; }

        /// <summary>
        /// 创建时间
        /// </summary>
        public DateTime CreateTime { get; set; }

        /// <summary>
        /// 修改人Id
        /// </summary>
        public long ModifyAdminId { get; set; }

        /// <summary>
        /// 修改时间
        /// </summary>
        public DateTime ModifyDateTime { get; set; }

        /// <summary>
        /// 学习资料正确答案内容
        /// </summary>
        public string AnswerContent { get; set; }
        /// <summary>
        /// 适用业务类型(司机、骑手)
        /// </summary>
        public DriverRoleType AppliedTo { get; set; }
        /// <summary>
        /// 适用业务类型(司机、骑手)
        /// </summary>
        public string AppliedToStr { get { return this.AppliedTo.GetDescriptionString(); } }
    }
}
